﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL.charge
{
    public class ChargeManager
    {
        public static int getCardId(String cardList_num)
        {
            IDAL.IChargeDAL chargeDAL = DALFactory.ChargeDALFactory.CreatInstance("SQLServerChargeDAL");
            return chargeDAL.getCardId(cardList_num);
        }
        public static int Charge(String username, String cardList_num) 
        {
            IDAL.IChargeDAL chargeDAL = DALFactory.ChargeDALFactory.CreatInstance("SQLServerChargeDAL");
            return chargeDAL.Charge(username, cardList_num);
        }
        public static int getUserId(String username)
        {
            IDAL.IChargeDAL chargeDAL = DALFactory.ChargeDALFactory.CreatInstance("SQLServerChargeDAL");
            return chargeDAL.getUserId(username);
        }
    }
}
